topenmp: main_openmp.c t2_openmp
	gcc-4.2 -o main_openmp main_openmp.c t2.o -fopenmp -lm

tmpi: main_mpi.c t2_mpi
	mpicc main_mpi.c -o main_mpi t2.o
	
t2_openmp:
	gcc-4.2 -c t2.c
	
t2_mpi:
	mpicc -c t2.c

clean_mpi:
	rm main_mpi *.o

clean_openmp:
	rm main_openmp *.o

run: tmpi
	mpirun -np 50 main_mpi 1